package com.xframe.xdal.core.model;


import lombok.Data;

@Data
public class UpdateSetWrap implements IFieldToName{

    private SetWrapMode mode;

    private String fieldName;

    @Override
    public String getFieldName() {
        return fieldName;
    }

    @Override
    public boolean isAttrPath() {
        return false;
    }

    public UpdateSetWrap(String fieldName,SetWrapMode mode){
        this.fieldName = fieldName;
        this.mode = mode;
    }



    public UpdateSetWrap(String fieldName){
        this.fieldName = fieldName;
        this.mode = SetWrapMode.KEYVALUE;
    }
}
